#include <stdio.h>
#include <Thread.h>


pthread_t thread;
int i;

createThreadHandle(handle) {
    printf("createThreadHandle: %s, %d\n", (char*)data, i++);

    return NULL;
}

int	main(int argc, char **argv)
{
    printf("Hello World\n");
    // base thread
    pthread_create(&thread, NULL, handle, "Yes");
    pthread_create(&thread, NULL, handle, "No");
    

    // Thread 
    Thread self = {0};
    createThread(&self, handle, "yes");
    runThread(&self);

    getchar();
    return 0;
}
